package com.rem.hutool.my5Utils;

import cn.hutool.core.util.ClassUtil;

/**
 * @Author Rem
 * @Date 2020-08-23
 */

public class ClassUtilDemo {

    public static void main(String[] args) {

        String shortClassName = ClassUtil.getShortClassName(ClassUtilDemo.class.getName());
        System.err.println("获取完整类名的短格式:" + shortClassName);  //c.r.h.m.ClassUtilDemo
        boolean allAssignableFrom = ClassUtil.isPrimitiveWrapper(Integer.class);
        System.err.println("是否是包装类:" + allAssignableFrom);// true
        String aPackage = ClassUtil.getPackage(ClassUtilDemo.class);
        System.err.println("类所在包的名称:" + aPackage); //com.rem.hutool.my5Utils


    }
}
